<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .ui-checkbox-wapper{
            position: relative;
            cursor: pointer;
            display: inline-block;
            margin-left: 280px;
        }
        .ui-checkbox-btn{
            display: inline-block;
            width: 20px;
            height: 20px;
            vertical-align: middle;
            margin-top: -4px;
        }
        .ui-checkbox-wapper input{
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0;
            z-index: 10;
            cursor: pointer;
        }
        .ui-checkbox{
            width: 100%;
            height: 100%;
            border-radius: 2px;
            border: 1px solid #aaa;
            box-sizing: border-box;
            cursor: pointer;
            display: inline-block;
        }
        .ui-checked{
            background-color: #f00;
            position: relative;
            border: 1px solid #f00;
        }
        .ui-checked::after{
            position: absolute;
            width: 5px;
            height: 10px;
            overflow: hidden;
            border-bottom:2px solid #fff;
            border-right:2px solid #fff;
            content: '';
            transform: rotate(45deg);
            left: 50%;
            top: 50%;
            margin-left: -3.5px;
            margin-top: -8px;  
        }
        
    </style>
</head>

<body>
            <div class="ui-checkbox-wapper">
                    <div class="ui-checkbox-btn">
                            <input type="checkbox" >
                            <div class="ui-checkbox"></div>
                    </div>
                    <span class="ui-checkbox-text">手机卡就撒</span>
                </div>

</body>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script>
    $('.ui-checkbox-wapper').on('click',function(){
      if( $('.ui-checkbox-wapper input').prop('checked')){
          $('.ui-checkbox').addClass('ui-checked')
      }else{
        $('.ui-checkbox').removeClass('ui-checked')
      }
    })
</script>
</html>